#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable:4996)
#include<stdio.h>

int main()
{
	int n;
	int c;
	scanf("%d", &n);

	if (n == 0)
	{
		printf("0");
	}
	else
	{
		int i;
		for (i = n; i > 0; i--)
		{
			scanf("%d", &c);
			int d;
				d = c*i;
				printf("%d ", d);
		}
	}
	return 0;
}